package com.me.modules.sla.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.me.modules.sla.dao.SlaAlertDefDao;
import com.me.modules.sla.entity.SlaAlertDefEntity;
import com.me.modules.sla.service.SlaAlertDefService;



@Service
public class SlaAlertDefServiceImpl implements SlaAlertDefService {
	@Autowired
	private SlaAlertDefDao slaAlertDefDao;

	@Override
	public SlaAlertDefEntity queryObject(Long id){
		return slaAlertDefDao.queryObject(id);
	}

	@Override
	public List<SlaAlertDefEntity> queryList(Map<String, Object> map){
		return slaAlertDefDao.queryList(map);
	}

    @Override
    public List<SlaAlertDefEntity> queryListByBean(SlaAlertDefEntity entity) {
        return slaAlertDefDao.queryListByBean(entity);
    }

	@Override
	public int queryTotal(Map<String, Object> map){
		return slaAlertDefDao.queryTotal(map);
	}

	@Override
	public int save(SlaAlertDefEntity slaAlertDef){


		return slaAlertDefDao.save(slaAlertDef);
	}

	@Override
	public int update(SlaAlertDefEntity slaAlertDef){
        return slaAlertDefDao.update(slaAlertDef);
	}

	@Override
	public int delete(Long id){
        return slaAlertDefDao.delete(id);
	}

	@Override
	public int deleteBatch(Long[] ids){
        return slaAlertDefDao.deleteBatch(ids);
	}

}
